package cn.edu.cupk.factory.method;

public class Bmw extends Car{
    // 构造方法
    public Bmw() {
        super.carName = "这是一辆普通的Bmw";
    }
    public Bmw(String name){
        super.carName = name;
    }
    @Override
    public void showInfo() {
        System.out.println("Bmw:"+super.carName);
    }
}
